package com.itdachang.design.behavioral.visitor;

/**
 * @author gcq
 * @create 2022-02-16
 */
public class Disk extends Hardware{

    public Disk(String command) {
        super(command);
    }

    @Override
    public void work() {
        System.out.println("Disk处理指令" + command);
    }


    @Override
    public void accpet(Vistor vistor) {
        vistor.vistDisk(this);
    }
}